import React, { Component } from 'react';
import { SearchBar } from 'antd-mobile'
import { MessageOutline } from 'antd-mobile-icons'
import { withRouter } from 'react-router-dom'
class InputBox extends Component {
    render() {
        return (
            <header>
                <SearchBar placeholder='请输入内容' onFocus={() => { this.props.history.push('/search') }} />
                <div className='icon'>
                    <MessageOutline />
                    <span>客服</span>
                </div>
            </header>
        );
    }
}

export default withRouter(InputBox);